package cn.yitun.chat.yitunserverimapicore.business.user.service;

import cn.yitun.chat.yituncommonmessage.Info;
import cn.yitun.chat.yituncommonmessage.result.ResultMessage;
import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudService;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.system.user.UserAccountDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.SecurityQuestionDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.SecurityQuestionInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.SecurityQuestionVo;

import java.util.List;

public interface SecurityQuestionService
		extends CrudService<SecurityQuestionDto, SecurityQuestionInfo, SecurityQuestionVo>{


	/**
	 * 
	 * Date 2019-01-20 09:43:30<br>
	 * Description 保存密保问题
	 * 
	 * @author yitun
	 * @param list
	 * @param userId
	 * @since 1.0.0
	 */
	void save(List<SecurityQuestionDto> list, Long userId);

	/**
	 * 
	 * Description <br>
	 * Date 2019-04-27 09:06:19<br>
	 * 
	 * @param account
	 * @return ResultMessage
	 * @since 1.0.0
	 */
	ResultMessage getSecurityQuestionDataListByAccount(String account);

	/**
	 * 
	 * Date 2019-01-20 09:44:57<br>
	 * Description 根据保问题修改密码
	 * 
	 * @author yitun
	 * @param accountDto
	 * @return
	 * @since 1.0.0
	 */
	Info updatePassword(UserAccountDto accountDto);
}
